<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>Top 5 Products</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <script src="js/echarts.min.js"></script>
</head>
<body>
<form action="/hbase_echarts/HBaseServlet" method="get">
    <button type="submit">Load Chart</button>
</form>
<div id="chart"
     style="width: 600px; height: 400px; <%= request.getAttribute("productData") != null ? "display: block;" : "display: none;" %>"></div>
</body>
</html>